package com.tduck.cloud.datav.vo;

import cn.hutool.core.collection.ListUtil;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;
import java.util.Map;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class BasicMapVO {


    private List<Object> pieces = ListUtil.empty();

    private List<MapItem> map;


    private List<Object> point = ListUtil.empty();

    @Data
    @AllArgsConstructor
    public static class MapItem {
        private String name;
        private Long value;


        public String getName() {
            if (name.length() == 2) {
                return name + "市";
            }
            return name;
        }
    }

}
